package com.peenongsaban.freelance.action;

import com.opensymphony.xwork2.ActionSupport;
import com.peenongsaban.freelance.model.ListFreelanceModel;
import com.peenongsaban.freelance.service.ListFreelanceService;

public class ListFreelanceAction extends ActionSupport {
	
	private static final long serialVersionUID = 1L;
	
	ListFreelanceModel model = new ListFreelanceModel();

	public String showListFreelancePage(){
		ListFreelanceService service = new ListFreelanceService();
		this.model.setListFreelanceByAptitudeTopHot(service.getListFreelanceByAptitudeTopHot());
		this.model.setListFreelanceByAptitudeType(service.getListFreelanceByAptitudeType(model));
		return SUCCESS;
	}

	public ListFreelanceModel getModel() {
		return model;
	}

	public void setModel(ListFreelanceModel model) {
		this.model = model;
	}
}
